package com.herench.bs.handler;

import com.herench.bs.annotation.Handler;
import com.herench.bs.support.AbstractMessageHandler;
import com.herench.bs.support.RequestMessage;
import com.herench.bs.support.ResponseMessage;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
@Handler(code = "101102" ,name="医院介绍")
public class HospitalIntroductionHanlder extends AbstractMessageHandler{
    @Value("${hospitalUrl}")
    private String hospitalUrl;

    @Override
    protected ResponseMessage innerHandler(RequestMessage requestMessage) throws Exception {
        ResponseMessage responseMessage = new ResponseMessage(requestMessage.getId());
        responseMessage.setDataAttribute("hospitalUrl",hospitalUrl);
        return responseMessage;
    }
}